package org.dromara.exam.domain.bo;

import org.dromara.exam.domain.entity.ExamTag;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import jakarta.validation.constraints.*;
import org.dromara.exam.enums.TagTypeEnum;

/**
 * 统一标签业务对象 exam_tag
 *
 * @author xiyin321
 * @date 2024-04-17
 */
@Data
@AutoMapper(target = ExamTag.class, reverseConvertGenerate = false)
public class ExamTagBo  {

    /**
     * 标签ID
     */
    private Long tagId;

    /**
     * 标签类型
     */
    @NotBlank(message = "标签类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private TagTypeEnum tagType;

    /**
     * 标签名称
     */
    @NotBlank(message = "标签名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String tagName;

}
